package com.wyh.shiro2_ssm.service.impl;

import com.wyh.shiro2_ssm.mapper.SysUserMapper;
import com.wyh.shiro2_ssm.pojo.SysUser;
import com.wyh.shiro2_ssm.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserMapper userMapper;

    @Override
    public SysUser findUserByName(String name) {
        return userMapper.findSysUserByLoginName(name);
    }
}
